<?php echo $this->Html->link("Add a new category", array("action" => "add")); ?>
<?php echo $this->Form->Create(array("action" => "delete")); ?>
<table>
	<tr>
		<th></th>

		<th>Name</th>
		<th>Articles</th>
		<th>Created</th>
		<th>Modified</th>
		<th>ID</th>
	</tr>
	<?php foreach($categories as $category): ?>
	<tr>
		<td><?php echo $this->Form->checkbox('selectedCategories.', array("value" => $category['Category']['id'], 'hiddenField' => false)); ?></td>
		<td><?php echo $this->Html->link($category['Category']['name'], array("action" => "edit/" . $category['Category']['id'])); ?></td>
		<td><?php echo count($category['GroupCategory']); ?></td>
		<td><?php echo $category['Category']['created']; ?></td>
		<td><?php echo $category['Category']['modified']; ?></td>
		<td><?php echo $category['Category']['id']; ?></td>

	</tr>
	<?php endforeach; ?>
</table>
<?php echo $this->Form->End("Delete Selected"); ?>